'use strict';
dataloaderApp.service ('scheduleServices', [ '$rootScope', '$location', '$q', 'httpResource', function ($rootScope, $location, $q, httpResource) {
	
	return {
		save : function (job) {
			return httpResource.post ({url:'rest/job/add', param: job});
		},

		findAllJobs : function () {
			return httpResource.get ({url:'rest/job/all'});			
		},
		
		findScheduledJobs : function () {
			return httpResource.get ({url:'rest/job/scheduled'});			
		},
	};
	
	
}]);
	